package com.ruoyi.cyinfo.service.impl;

import java.util.List;

import com.ruoyi.cyinfo.vo.FrontListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cyinfo.mapper.InfoUserOtherMapper;
import com.ruoyi.cyinfo.domain.InfoUserOther;
import com.ruoyi.cyinfo.service.IInfoUserOtherService;

/**
 * 用户其他信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-10
 */
@Service
public class InfoUserOtherServiceImpl implements IInfoUserOtherService 
{
    @Autowired
    private InfoUserOtherMapper infoUserOtherMapper;

    /**
     * 查询用户其他信息
     * 
     * @param id 用户其他信息主键
     * @return 用户其他信息
     */
    @Override
    public InfoUserOther selectInfoUserOtherById(Long id)
    {
        return infoUserOtherMapper.selectInfoUserOtherById(id);
    }

    /**
     * 查询用户其他信息列表
     * 
     * @param infoUserOther 用户其他信息
     * @return 用户其他信息
     */
    @Override
    public List<InfoUserOther> selectInfoUserOtherList(InfoUserOther infoUserOther)
    {
        return infoUserOtherMapper.selectInfoUserOtherList(infoUserOther);
    }

    /**
     * 新增用户其他信息
     * 
     * @param infoUserOther 用户其他信息
     * @return 结果
     */
    @Override
    public int insertInfoUserOther(InfoUserOther infoUserOther)
    {
        return infoUserOtherMapper.insertInfoUserOther(infoUserOther);
    }

    /**
     * 修改用户其他信息
     * 
     * @param infoUserOther 用户其他信息
     * @return 结果
     */
    @Override
    public int updateInfoUserOther(InfoUserOther infoUserOther)
    {
        return infoUserOtherMapper.updateInfoUserOther(infoUserOther);
    }

    /**
     * 批量删除用户其他信息
     * 
     * @param ids 需要删除的用户其他信息主键
     * @return 结果
     */
    @Override
    public int deleteInfoUserOtherByIds(Long[] ids)
    {
        return infoUserOtherMapper.deleteInfoUserOtherByIds(ids);
    }

    /**
     * 删除用户其他信息信息
     * 
     * @param id 用户其他信息主键
     * @return 结果
     */
    @Override
    public int deleteInfoUserOtherById(Long id)
    {
        return infoUserOtherMapper.deleteInfoUserOtherById(id);
    }

    @Override
    public List<FrontListVO> selectFrontList(String configValue) {

        return infoUserOtherMapper.selectFrontList(configValue);
    }
}
